package com.qyzmt.service.impl;

import com.qyzmt.mapper.IndexVideoMapper;
import com.qyzmt.pojo.IndexVideo;
import com.qyzmt.service.IndexVideoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class IndexVideoServiceImpl implements IndexVideoService {

    @Autowired
    private IndexVideoMapper indexVideoMapper;
    @Override
    public List<IndexVideo> videos() {
        log.info("ServiceImpl:请求视频数据...");
        List<IndexVideo> indexVideo = indexVideoMapper.videos();
        log.info("数据库返回数据:{}",indexVideo);
        return indexVideo;
    }
}
